<div class="list-group-item item-tool d-flex p-0" data-tool-id="{{ tool.id }}" data-tool-type="{{ tool.tool_type }}" data-id="TOOL-{{ tool.id }}">
  <span class="badge badge-pill badge-primary tool-type align-self-center mr-1 cursor-pointer {{ 'div-forbidden' if is_forbidden(tool) }}"> {{ tool.tool_type }} </span>
  <div class="tool-name cursor-pointer {{ 'div-forbidden' if is_forbidden(tool) }}" data-tool-id="{{ tool.id }}"><small>{{ tool.name }}</small></div>
  <a class="btn btn-link btn-tool float-right" type="button" data-tool-id="{{ tool.id }}"></a>
  <div class="btn-tool-tippy-content" data-tool-id="{{ tool.id }}" style="display: none">
    <button type="button" class="btn btn-sm btn-outline-primary btn-block mt-0 border-0" data-tool-id="{{ tool.id }}" onclick="deleteTool({{ tool.id }})">删除</button>
    <button type="button" class="btn btn-sm btn-outline-primary btn-block mt-0 border-0" data-tool-id="{{ tool.id }}" onclick="copyToolSelf(this)" >复制</button>
    <button type="button" class="btn btn-sm btn-outline-primary btn-block mt-0 border-0" data-tool-id="{{ tool.id }}" onclick="forbiddenTool({{ tool.id }})">禁用/启用</button>
  </div>
</div>